package com.clw.service;


import com.clw.dataobject.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2017-12-15.
 */
public interface ProductService {
    boolean hasMore(String productName);
    
    List<Product> findAll();

    Product save(Product product);

    void del(Product product);

    Product add(Product product);

    Product findByProductName(String productName);

    Product findOne(Integer id);

    Page<Product> findAll(String name, String catalog,String number, Pageable pageable);

    Long getSize(String name, String catalog,String number);

}
